a = input ()
print(len(a))
a,b = input().split(" ")
print(b," ",a)
